package day04;

import java.util.Scanner;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/11
 */
public class ContainNumber {
    public static void main(String[] args) {

        int [] arr = {8,4,2,1,23,344,12};
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个数：");
        int num = sc.nextInt();

        BubbleSort.bubbleSort(arr);

        int index = BinarySearch.binarySearch(arr, num);
        if (index == -1) {
            System.out.println("数列中不包含此数");
        }else {
            System.out.println("数列中包含此数");
        }

    }
}
